package net.trustie.dao;

import net.trustie.model.cnblogs_news_Model;
import org.apache.ibatis.annotations.Insert;

public interface CNblogNews_Dao {
	
	@Insert("insert into cnblog_news"
			+ "(`cnblog_news_source`,`related_posts`,`view_num`,`review_num`,`url_md5`,`type`,`created_time`,`url`,`title`,`tags`,`content`,`source`,"
			+ "`extracted_time`,`author`,`author_url`)"
			
			
			+ "values(#{comeFrom},#{relatedPost},#{viewNum},#{reviewNum},#{url_md5},#{type},#{relativeTime},#{newsUrl},#{newsTitle},#{tag},#{newsContent},#{source},"
			+ "#{extractTime},#{newsAuthor},#{newsAuthorUrl})")
	
	public int add(cnblogs_news_Model cNews_Model);
	
//	@Insert("insert into cnblog_news"
//			+ "(`cnblog_news_source`,`related_posts`,`view_num`,`review_num`,`url_md5`,`type`,`created_time`,`url`,`title`,`tags`,`content`,`source`,`extracted_time`,`author`,`author_url`)"
//			
//			
//			+ "values(#{comeFrom},#{relatedPost},#{viewNum},#{reviewNum},#{url_md5},#{type},#{relativeTime],#{newsUrl},#{newsTitle},#{tag},#{newsContent},#{source},#{extractTime},#{newsAuthor},#{newsAuthorUrl})")
//	
//	public int add(cnblogs_news_Model cNews_Model);
	
//	@Insert("insert into cnblog_news"
//			+ "(`cnblog_news_source`,`related_posts`,`view_num`,`review_num`,`url_md5`,`type`,`created_time`,`url`,`title`)"
//			
//			
//			+ "values(#{comeFrom},#{relatedPost},#{viewNum},#{reviewNum},#{url_md5},#{type},#{relativeTime},#{newsUrl},#{newsTitle})")
//	
//	public int add(cnblogs_news_Model cNews_Model);
}
